﻿@using QDT.Core
@model QDT.Core.Assignments.Assignment

<form class="ui-form" method="post" action="@Url.Action("SubmitAssignment")" id="submit_assignment_form">

    <div class="ui-form-item">
        <label for="" class="ui-label">待收本金</label>
        <p class="ui-form-text">@Model.Money.ToMoney()<span>&nbsp;元</span></p>
    </div>

    <div class="ui-form-item">
        <label for="" class="ui-label">当期应收收益</label>
        <p class="ui-form-text">@Model.CurrentEarning.ToMoney()<span>&nbsp;元</span></p>
    </div>

    <div class="ui-form-item">
        <label for="" class="ui-label">折让费用</label>
        <p class="ui-form-text">@Model.TotalDiscount.ToMoney()<span>&nbsp;元</span>（<span>@Model.DiscountRate</span>%）</p>
    </div>

    <div class="ui-form-item">
        <label for="" class="ui-label">赎回金额</label>
        <p class="ui-form-text">@((Model.BuyAmount - Model.Fee).ToMoney())<span>&nbsp;元</span> </p>
    </div>

    <div class="ui-form-item">
        <label for="" class="ui-label">手续费</label>
        <p class="ui-form-text">@Model.Fee.ToMoney()<span>&nbsp;元</span>（<span>0.5</span>%）</p>
    </div>

    <div class="ui-form-item">
        <label for="" class="ui-label">安全密码</label>
        <input type="hidden" name="creditId" value="@Model.CreditId"/>
        <input type="hidden" name="money" value="@Model.Money"/>
        <input type="hidden" name="discount" value="@Model.DiscountRate"/>
        <input class="ui-input ui-input-large" name="SafePassword" type="password" />
    </div>

</form>